package work.chenbo.spring_boot_shiro.common.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author ChenBo
 * @className PageVo
 * @date 2019/11/28
 */
@Data
public class PageVo<T extends Serializable> implements Serializable  {
    /** 标识当前请求的顺序 */
    private Integer draw;
    /** 总记录数 */
    private Long recordsTotal;
    /** 过滤后总记录数 */
    private Long recordsFiltered;
    /** 数据 */
    private List<T> data;


    public void setRecordsTotal(Long recordsTotal) {
        this.recordsTotal = recordsTotal;
        this.recordsFiltered=recordsTotal;
    }

    public void setRecordsFiltered(Long recordsFiltered) {
        this.recordsFiltered = recordsFiltered;
        this.recordsTotal=recordsFiltered;
    }
}
